package com.pureut.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Treeselect树结构实体类
 *
 */
@Data
public class DeptTreeSelect implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 节点ID
     */
    private Long text;

    /**
     * 节点名称
     */
    private String value;

    /**
     * 父级id
     */
    @JsonIgnore
    private String pid;

    /**
     * 父级id(拼接)
     */
    @JsonIgnore
    private String tid;

    /**
     * 类型1 部门 2 人员
     */
    private String type;

    /**
     * 子节点
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DeptTreeSelect> children;






}
